#!/usr/bin/env bash
#=======================================================================#
# Copyright (C) 2020 - 2024 Dominik Willner <th33xitus@gmail.com>       #
#                                                                       #
# This file is part of KIAUH - Klipper Installation And Update Helper   #
# https://gitee.com/longhuohuxiao/kiauh                                 #
#                                                                       #
# This file may be distributed under the terms of the GNU GPLv3 license #
#=======================================================================#
#===================================================#
#================ INSTALL SHAKETUNE ================#
#===================================================#
function install_shaketune() {
  # 克隆 SHAKETUNE 仓库到 home 目录
  echo "正在克隆 SHAKETUNE 仓库到 ${SHAKETUNE_DIR} ..."
  git clone "${SHAKETUNE_REPO}" "${SHAKETUNE_DIR}"
  echo "克隆完成！"
  # 运行 install.sh
  echo "正在运行安装脚本..."
  chmod +x "${SHAKETUNE_DIR}/install.sh"
  bash "${SHAKETUNE_DIR}/install.sh"
  echo "[DOWNLOAD] Download complete!\n\n"
}

